package com.open.system.dispatch.impl;

import com.open.system.dispatch.ILogDispatch;
import com.open.system.model.Log;
import com.open.common.model.Page;
import com.open.system.model.vo.LogVo;
import com.open.system.service.ILogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 
 *
 * @author 大树03
 * @date 2025-07-04 11:16
 */
@Component(value="logDispatch")
@Slf4j
public class LogDispatchImpl implements ILogDispatch{

	private ILogService logService;

    @Autowired
	public void setLogService(ILogService logService) {
		this.logService = logService;
	}

	@Override
	public Boolean save(Log model)  {
		return logService.save(model);
	}

	@Override
	public Boolean update(Log model)  {
		return logService.update(model);
	}

	@Override
	public Page<LogVo> findPage(Page<Log> page, Log item)  {
		return logService.findPage(page,item);
	}
	
	@Override
	public Log findByPk(Long pk) {
		return logService.findByPk(pk);
	}

	@Override
    public List<Log> findByModel(Log model)  {
		return logService.findByModel(model);
	}

	@Override
	public Boolean remove(List<Long> pks) {
		return logService.remove(pks);
	}
}